package com.phoebe.auth.repository;

import com.phoebe.auth.model.AuthApp;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

/**
 * @author: zhaojd1604@gmail.com
 * @date: 2019-01-03 20:33
 * @description: 授权应用Repository
 * @since: V0.0.1
 */
@Repository
public interface AuthAppRepository extends JpaRepository<AuthApp, Long> {

    /**
     * 根据应用key获取授权应用
     *
     * @param key 应用key
     * @return 授权应用
     */
    AuthApp findByKey(String key);
}
